home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / Finder.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.6 KB  |  108 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Finder.r
  3.  
  4.      Contains:    Finder flags and container types.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1990-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __FINDER_R__
  20. #define __FINDER_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define kCustomIconResource             (-16455)            /*  Custom icon family resource ID  */
  27. #define kContainerFolderAliasType         'fdrp'                /*  type for folder aliases  */
  28. #define kContainerTrashAliasType         'trsh'                /*  type for trash folder aliases  */
  29. #define kContainerHardDiskAliasType     'hdsk'                /*  type for hard disk aliases  */
  30. #define kContainerFloppyAliasType         'flpy'                /*  type for floppy aliases  */
  31. #define kContainerServerAliasType         'srvr'                /*  type for server aliases  */
  32. #define kApplicationAliasType             'adrp'                /*  type for application aliases  */
  33. #define kContainerAliasType             'drop'                /*  type for all other containers  */
  34.                                                             /*  types for Special folder aliases  */
  35. #define kSystemFolderAliasType             'fasy'
  36. #define kAppleMenuFolderAliasType         'faam'
  37. #define kStartupFolderAliasType         'fast'
  38. #define kPrintMonitorDocsFolderAliasType  'fapn'
  39. #define kPreferencesFolderAliasType     'fapf'
  40. #define kControlPanelFolderAliasType     'fact'
  41. #define kExtensionFolderAliasType         'faex'                /*  types for AppleShare folder aliases  */
  42. #define kExportedFolderAliasType         'faet'
  43. #define kDropFolderAliasType             'fadr'
  44. #define kSharedFolderAliasType             'fash'
  45. #define kMountedFolderAliasType         'famn'
  46.  
  47.  
  48. /*----------------------------BNDL • Bundle---------------------------------------------*/
  49. type 'BNDL' {
  50.         literal longint;                                        /* Signature            */
  51.         integer;                                                /* Version ID            */
  52.         integer = $$CountOf(TypeArray) - 1;
  53.         array TypeArray {
  54.                 literal longint;                                /* Type                 */
  55.                 integer = $$CountOf(IDArray) - 1;
  56.                 wide array IDArray {
  57.                         integer;                                /* Local ID             */
  58.                         integer;                                /* Actual ID            */
  59.                 };
  60.         };
  61. };
  62.  
  63. /*----------------------------open • FileTypes an app can open--------------------------*/
  64. type 'open' {
  65.         literal longint;                                        /* app signature        */
  66.         integer = 0;
  67.         integer = $$CountOf(typeArray);                             /* Array size            */
  68.         wide array typeArray {                                    /* FileTypes that app can open */
  69.                 literal longint;                                /* FileType                */
  70.         };
  71. };
  72.  
  73. /*----------------------------FREF • File Reference-------------------------------------*/
  74. type 'FREF' {
  75.         literal longint;                                        /* File Type            */
  76.         integer;                                                /* Icon ID                */
  77.         pstring;                                                /* Filename             */
  78. };
  79.  
  80. /*----------------------------kind • Custom kind strings --------------------------------*/
  81. type 'kind' {
  82.         literal longint;                                        /* app signature         */
  83.         integer;                                                /* region code of kind string localizations */
  84.         integer = 0;
  85.         integer = $$CountOf(kindArray);                             /* Array size            */
  86.         wide array kindArray {
  87.                 literal longint;                                /* File Type            */
  88.                 pstring;                                        /* custom kind strings    */
  89.                 align    word;
  90.         };
  91. };
  92. /*----------------------------mach • cdev filtering-------------------------------------*/
  93. type 'mach' {
  94.         unsigned hex integer;                                                /* Softmask    */
  95.         unsigned hex integer;                                                /* Hardmask    */
  96. };
  97. /*----------------------------nrct • Rectangle List-------------------------------------*/
  98. type 'nrct' {
  99.         integer = $$CountOf(RectArray);                            /* Number of rectangles    */
  100.         array RectArray {
  101.             rect;
  102.         };
  103. };
  104.  
  105.  
  106. #endif /* __FINDER_R__ */
  107.  
  108.